<template>
	<view>
		<movable-area class="movableArea">
			<movable-view class="movableView" direction="all" x="600rpx" y="800rpx">
				<view class="coupn" v-if="counp_show">
					<view class="coupn_icon" @tap="counp_show=false">
						<u-icon name="close-circle-fill" color="#0C0B0B" size="28"></u-icon>
					</view>
					<view class="coupn_img" @tap="router_go('/pages/me_all/coupon_collection/coupon_collection')">
						<image src="https://can.clkejj.com/static/Project_drawing 38.png" mode=""></image>
					</view>
					<view class="coupn_title" @tap="router_go('/pages/me_all/coupon_collection/coupon_collection')">
						<view class="coupn_title_text">领券中心</view>
						<u-icon name="arrow-right" color="#68150A " size="22"></u-icon>
					</view>
				</view>
			</movable-view>
		</movable-area>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				counp_show: true,
			};
		},

		methods: {

			router_go(url) {
				uni.navigateTo({
					url
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	.movableArea {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		pointer-events: none; //设置area元素不可点击，则事件便会下移至页面下层元素
		.movableView {
			pointer-events: auto; //可以点击
		}
		.coupn {
			.coupn_icon {
				width: 24rpx;
				height: 24rpx;
				margin-left: 100rpx;
				margin-bottom: 10rpx;
				opacity: 0.5;
			}
			.coupn_img {
				width: 130rpx;
				height: 121rpx;
			}
			.coupn_title {
				width: 120rpx;
				padding: 5rpx 10rpx;
				background: #FEDD5B;
				border-radius: 18rpx;
				display: flex;
				align-items: center;
				position: relative;
				bottom: 30rpx;
				.coupn_title_text {
					font-size: 22rpx;
					font-weight: 400;
					color: #631407;
					margin-left: 10rpx;
				}
			}
		}
	}
</style>